<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/5/20
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="baidu-tc-cerfication" content="8f75aa1d017086290b42263df41c1791"/>
    <meta name="keywords" content="自助游,舒客,旅居网"/>
    <meta name="description" content="舒客旅游网 Yododo"/>
    <meta name="apple-mobile-web-app-title" content="0"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <title>个人中心</title>
    <link rel="stylesheet" href="${path}/LeisureSeeker/css/jquery-ui-1.9.custom.css">
    <link rel="stylesheet" href="${path}/LeisureSeeker/css/ylj.css">
    <script type="text/javascript" charset="utf-8" src="${path}/LeisureSeeker/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${path}/LeisureSeeker/js/jquery-ui-1.9.2.min.js"></script>
    <script type="text/javascript"> var $j = jQuery.noConflict(); </script>
    <script type="text/javascript" charset="utf-8" src="${path}/LeisureSeeker/js/yododo.js"></script>
    <script type="text/javascript" charset="utf-8" src="${path}/LeisureSeeker/js/prototype.js"></script>
    <c:set var="path" value="${pageContext.request.contextPath}"></c:set>
    <link rel="icon" href="${path}/LeisureSeeker/icons/favicon.ico" sizes="16x16"/>
</head>
<body>
<jsp:include page="header.jsp"/>
<div class="usersp-main">
    <div class="usersp-hd">
        <div class="w1200">
            <div class="usersp-z clearfix">
                <strong>${sessionScope.userInfo.userName!=null?sessionScope.userInfo.userName:sessionScope.userInfo.tel}<i>的个人空间</i> <span>推荐</span></strong>
                <%--<p>--%>
                <%--<span>男</span>--%>
                <%--<span><i>积分</i>283664</span>--%>
                <%--<span><i>现住</i>--%>
                <%--北京--%>
                <%--</span>--%>
                <%--<span><i>注册于</i>2010-01-23</span>--%>

                <%--</p>--%>
                <%--<p class="ft16">一个退休的倔老头，喜欢自由行。</p>--%>
            </div>
            <div class="usersp-t clearfix">
                <a href="${path}/usercenterapi/userCenter">TA的攻略</a>
                <a href="${path}/usercenterapi/userInfo">个人信息</a>
                <a href="${path}/usercenterapi/userStrategy">发布攻略</a>
                <a class="current" href="${path}/usercenterapi/userCollection">TA的收藏</a>
            </div>
        </div>
    </div>

    <div class="w1200">
        <div class="usersp-lb">

        </div>
        <div class="userglist" style="border-bottom: 1px dashed #fff;">
            <ul class="clearfix">
                <c:forEach items="${pd.data}" var="a">
                    <c:if test="${a.uId==userInfo.userId}">

                        <li>
                            <a href="${path}/traapi/travels/${a.traId}" target="_blank">
                                <div class="ugimg" style="background-image: url(${a.traPicpath})">&nbsp;</div>
                                <strong>${a.traTitle}</strong>
                                <p><span class="partialDisplay">${a.traContent}</span></p>
                                <span><img src="${a.traPicpath}">${userInfo.userName}</span>
                                <i>${a.traDate}<strong>${a.userName} </strong></i>
                            </a>
                        </li>
                    </c:if>
                </c:forEach>
            </ul>
        </div>
    </div>
</div>
<jsp:include page="bottom.jsp"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $.ajax({
            'type': 'get',
            'url': '${path}/colapi/collection?page=1&limit=1000',
            'success': function (cm) {
                if (location.href.indexOf("#reloaded") == -1) {
                    location.href = location.href + "#reloaded";
                    location.reload();
                }
            }
        });
    });

</script>
</html>
